﻿using ManagementSystem.Model.EF;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ManagementSystem
{
    /// <summary>
    /// 按学号查询结果显示窗体
    /// </summary>
    public partial class FormStudent : Form
    {
        private SystemServices services;
        public FormStudent()
        {
            InitializeComponent();
        }

        private void FormStudent_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="sID"></param>
        public FormStudent(IEnumerable<Student> sID)
        {
            InitializeComponent();

            //返回按学号查询的结果
            dataGridView1.DataSource = new BindingList<Student>(sID.ToList());
        }

        
    }
}
